﻿namespace Sidvall.Data
{
	public class RelationFieldItemCollection : System.Collections.ObjectModel.Collection<RelationFieldItem>
	{
		public RelationFieldItem Add(string sourceFieldName, string relatedFieldName)
		{
			var item = new RelationFieldItem()
			{
				RelatedFieldName = relatedFieldName,
				SourceFieldName = sourceFieldName,
			};
			Add(item);
			return item;
		}
	}
}
